//
//  ChangeString.m
//  NSURLSession版网络请求(AFN3.0)
//
//  Created by 小柠檬 on 15/10/27.
//  Copyright © 2015年 Bella. All rights reserved.
//

#import "ChangeString.h"

@implementation ChangeString

+(NSDictionary *)changeStringToDictionary:(NSString *)string
{
    NSMutableDictionary *dic = [NSMutableDictionary dictionary];
    NSArray *array = [string componentsSeparatedByString:@"&"];
    for (NSString *str in array) {
        NSArray *tempArray = [str componentsSeparatedByString:@"="];
        [dic setObject:tempArray[1] forKey:tempArray[0]];
    }
    return dic;
    
}


@end
